Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

removeBookings doesn't work, inArray is buggy #1

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

ghost
Copy link

@ghost ghost commented Sep 4, 2014

Add this function on bottom

function isInArray(value, array) {
return array.indexOf(value) > -1;
}


and replace
if (jQuery.inArray(bookingId, toRemove) >= 0) {

with
if (isInArray(bookingId, toRemove)) {

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant